{% extends 'base.html' %}
{% load static %}

{% block 'title' %}登录{% endblock%}
{% block 'header-title' %}用户登录{% endblock%}
{% block 'header' %}
{% include 'header-widget.html' %}
{% endblock %}
{% block 'content' %}
    <div class="container">

        <form method="post" class="">
            {% csrf_token %}
            <div class="form-group">
                <label for="username">用户名</label>
                <input class="form-control" id="username" type="text" name="username" placeholder="用户名" required>
            </div>
            <div class="form-group">
                <label for="password">密码</label>
                <input class="form-control" type="password" id="password" name="password" placeholder="密码" required>
            </div>
            {% include 'message.html' %}
            <button class="btn btn-outline-success" type="submit">登录</button>
            
            <div>
                没有账户？<a href="{% url 'register' %}">注册</a>
            </div>
        </form>
    </div>
{% endblock %}